8. Banner Grabbing

Banner Grabbing Technique -A method used to gain information about a computer system on a network and the services (with version number) running on its open ports.

Banners are the welcome screens (text message received from the host) that divulge (to make public) software version numbers and other system information on network hosts.
Banner information include the operating system, the version number, and the specific service packs.

Banners can be grabbed using telnet or tools like nmap,netcat.


Common Service ports used for banner grabbing:


  1. Netcat is a feature-packed networking utility.Often called as “Swiss Army Knife”.Some of its features include port scanning, file transfer, port listening, redirecting network traffic and it can be used as a backdoor.

nc -v [target host] [port number]

-v = verbose

72e7b5a9f1ad5a7d7b19bba957cf08e5.png


  1. Ncat is improved implementation of netcat for nmap by it's devs.

ncat [options] [hostname] [port]

fd922ee6ec9ea4cfdacf0a8da33b7518.png


3.TELNET (TELecommunication NETwork) is a network protocol used on the Internet or LAN. It allows a user to log in on any other computer on the network.

telnet [target_ip] [port]

port - port number of the service you wan to grab banner for

c95337ef85018edb26c05ccce51b782a.png

574924e940c0754f6d030caac9ec7d8c.png


Nmap

nmap -sV --script=banner [target_ip] -p [port] -oX [filename.xml]

-p is optional,to grab banners for all services remove it
-sV = service details with version number
-oX = export banner grabbed in xml format

8a98dd26a30f1098ad4cb2920f0488e1.png

4bb1ff5b4e649a22ea69dd11090db591.png


Shodan is a search engine for banners grabbed from portscanning the Internet and more.

fffa683ddbf818a616c324350e4b66a0.png